#define  _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"

void TestStack()
{
	Stack St;
	StackInit(&St);

	StackPush(&St, 1);
	StackPush(&St, 2);
	StackPush(&St, 3);
	StackPush(&St, 4);
	StackPush(&St, 5);
	StackPush(&St, 6);

	printf("StackSize: %d\n", StackSize(&St));
	printf("StackTop: %d\n", StackTop(&St));

	while (!StackEmpty(&St))
	{
		printf("%d ", StackTop(&St));
		StackPop(&St);
	}
	printf("\n");

	printf("StackSize: %d\n", StackSize(&St));
	StackDestory(&St);
}

int main()
{
	TestStack();

	return 0;
}